Optimal. Leaf size=48 \[ -a \tanh ^{-1}\left (\sqrt{1-d^2 x^2}\right )+\frac{b \sin ^{-1}(d x)}{d}-\frac{c \sqrt{1-d^2 x^2}}{d^2} \]
[Out]
_______________________________________________________________________________________
Rubi [A] time = 0.329796, antiderivative size = 48, normalized size of antiderivative = 1., number of steps used = 7, number of rules used = 7, integrand size = 33, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.212 \[ -a \tanh ^{-1}\left (\sqrt{1-d^2 x^2}\right )+\frac{b \sin ^{-1}(d x)}{d}-\frac{c \sqrt{1-d^2 x^2}}{d^2} \]
Antiderivative was successfully verified.
[In] Int[(a + b*x + c*x^2)/(x*Sqrt[1 - d*x]*Sqrt[1 + d*x]),x]
[Out]
_______________________________________________________________________________________
Rubi in Sympy [A] time = 30.0362, size = 39, normalized size = 0.81 \[ - a \operatorname{atanh}{\left (\sqrt{- d^{2} x^{2} + 1} \right )} + \frac{b \operatorname{asin}{\left (d x \right )}}{d} - \frac{c \sqrt{- d^{2} x^{2} + 1}}{d^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] rubi_integrate((c*x**2+b*x+a)/x/(-d*x+1)**(1/2)/(d*x+1)**(1/2),x)
[Out]
_______________________________________________________________________________________
Mathematica [A] time = 0.067671, size = 54, normalized size = 1.12 \[ -a \log \left (\sqrt{1-d^2 x^2}+1\right )+a \log (x)+\frac{b \sin ^{-1}(d x)}{d}-\frac{c \sqrt{1-d^2 x^2}}{d^2} \]
Antiderivative was successfully verified.
[In] Integrate[(a + b*x + c*x^2)/(x*Sqrt[1 - d*x]*Sqrt[1 + d*x]),x]
[Out]
_______________________________________________________________________________________
Maple [C] time = 0., size = 94, normalized size = 2. \[{\frac{{\it csgn} \left ( d \right ) }{{d}^{2}}\sqrt{-dx+1}\sqrt{dx+1} \left ( -{\it csgn} \left ( d \right ){\it Artanh} \left ({\frac{1}{\sqrt{-{d}^{2}{x}^{2}+1}}} \right ) a{d}^{2}+\arctan \left ({{\it csgn} \left ( d \right ) dx{\frac{1}{\sqrt{-{d}^{2}{x}^{2}+1}}}} \right ) bd-{\it csgn} \left ( d \right ) \sqrt{-{d}^{2}{x}^{2}+1}c \right ){\frac{1}{\sqrt{-{d}^{2}{x}^{2}+1}}}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] int((c*x^2+b*x+a)/x/(-d*x+1)^(1/2)/(d*x+1)^(1/2),x)
[Out]
_______________________________________________________________________________________
Maxima [A] time = 1.48913, size = 89, normalized size = 1.85 \[ -a \log \left (\frac{2 \, \sqrt{-d^{2} x^{2} + 1}}{{\left | x \right |}} + \frac{2}{{\left | x \right |}}\right ) + \frac{b \arcsin \left (\frac{d^{2} x}{\sqrt{d^{2}}}\right )}{\sqrt{d^{2}}} - \frac{\sqrt{-d^{2} x^{2} + 1} c}{d^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((c*x^2 + b*x + a)/(sqrt(d*x + 1)*sqrt(-d*x + 1)*x),x, algorithm="maxima")
[Out]
_______________________________________________________________________________________
Fricas [A] time = 0.236511, size = 171, normalized size = 3.56 \[ \frac{c d x^{2} - 2 \,{\left (\sqrt{d x + 1} \sqrt{-d x + 1} b - b\right )} \arctan \left (\frac{\sqrt{d x + 1} \sqrt{-d x + 1} - 1}{d x}\right ) +{\left (\sqrt{d x + 1} \sqrt{-d x + 1} a d - a d\right )} \log \left (\frac{\sqrt{d x + 1} \sqrt{-d x + 1} - 1}{x}\right )}{\sqrt{d x + 1} \sqrt{-d x + 1} d - d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((c*x^2 + b*x + a)/(sqrt(d*x + 1)*sqrt(-d*x + 1)*x),x, algorithm="fricas")
[Out]
_______________________________________________________________________________________
Sympy [A] time = 58.6066, size = 245, normalized size = 5.1 \[ \frac{i a{G_{6, 6}^{5, 3}\left (\begin{matrix} \frac{3}{4}, \frac{5}{4}, 1 & 1, 1, \frac{3}{2} \\\frac{1}{2}, \frac{3}{4}, 1, \frac{5}{4}, \frac{3}{2} & 0 \end{matrix} \middle |{\frac{1}{d^{2} x^{2}}} \right )}}{4 \pi ^{\frac{3}{2}}} - \frac{a{G_{6, 6}^{2, 6}\left (\begin{matrix} 0, \frac{1}{4}, \frac{1}{2}, \frac{3}{4}, 1, 1 & \\\frac{1}{4}, \frac{3}{4} & 0, \frac{1}{2}, \frac{1}{2}, 0 \end{matrix} \middle |{\frac{e^{- 2 i \pi }}{d^{2} x^{2}}} \right )}}{4 \pi ^{\frac{3}{2}}} - \frac{i b{G_{6, 6}^{6, 2}\left (\begin{matrix} \frac{1}{4}, \frac{3}{4} & \frac{1}{2}, \frac{1}{2}, 1, 1 \\0, \frac{1}{4}, \frac{1}{2}, \frac{3}{4}, 1, 0 & \end{matrix} \middle |{\frac{1}{d^{2} x^{2}}} \right )}}{4 \pi ^{\frac{3}{2}} d} + \frac{b{G_{6, 6}^{2, 6}\left (\begin{matrix} - \frac{1}{2}, - \frac{1}{4}, 0, \frac{1}{4}, \frac{1}{2}, 1 & \\- \frac{1}{4}, \frac{1}{4} & - \frac{1}{2}, 0, 0, 0 \end{matrix} \middle |{\frac{e^{- 2 i \pi }}{d^{2} x^{2}}} \right )}}{4 \pi ^{\frac{3}{2}} d} - \frac{i c{G_{6, 6}^{6, 2}\left (\begin{matrix} - \frac{1}{4}, \frac{1}{4} & 0, 0, \frac{1}{2}, 1 \\- \frac{1}{2}, - \frac{1}{4}, 0, \frac{1}{4}, \frac{1}{2}, 0 & \end{matrix} \middle |{\frac{1}{d^{2} x^{2}}} \right )}}{4 \pi ^{\frac{3}{2}} d^{2}} - \frac{c{G_{6, 6}^{2, 6}\left (\begin{matrix} -1, - \frac{3}{4}, - \frac{1}{2}, - \frac{1}{4}, 0, 1 & \\- \frac{3}{4}, - \frac{1}{4} & -1, - \frac{1}{2}, - \frac{1}{2}, 0 \end{matrix} \middle |{\frac{e^{- 2 i \pi }}{d^{2} x^{2}}} \right )}}{4 \pi ^{\frac{3}{2}} d^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((c*x**2+b*x+a)/x/(-d*x+1)**(1/2)/(d*x+1)**(1/2),x)
[Out]
_______________________________________________________________________________________
GIAC/XCAS [F(-2)] time = 0., size = 0, normalized size = 0. \[ \text{Exception raised: NotImplementedError} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((c*x^2 + b*x + a)/(sqrt(d*x + 1)*sqrt(-d*x + 1)*x),x, algorithm="giac")
[Out]